<h1><?php __('Avaliar Artigo'); ?></h1>
<h2><?php echo $evaluation['Article']['name'] ?></h2>
<div class="evaluations index">

    <dl><?php $i = 0;
$class = ' class="altrow"'; ?>
        <dt <?php echo $i % 2 == 0 ? $class : ''; ?>><?php __('Id'); ?></dt>
        <dd <?php echo $i++ % 2 == 0 ? $class : ''; ?>><?php echo $evaluation['Article']['id']; ?>&nbsp;</dd>
        <dt <?php echo $i % 2 == 0 ? $class : ''; ?>><?php __('Arquivo'); ?></dt>
        <dd <?php echo $i++ % 2 == 0 ? $class : ''; ?>><?php echo $this->Html->image('pdf_icon.png') . ' ' . $this->Html->link(__($evaluation['Article']['name'], true), $evaluation['Article']['file_path']); ?>&nbsp;</dd>
        <dt <?php echo $i % 2 == 0 ? $class : ''; ?>><?php __('Abstract em Português'); ?></dt>
        <dd <?php echo $i++ % 2 == 0 ? $class : ''; ?>><?php echo $evaluation['Article']['abstract_pt']; ?>&nbsp;</dd>
        <dt <?php echo $i % 2 == 0 ? $class : ''; ?>><?php __('Abstract em Inglês'); ?></dt>
        <dd <?php echo $i++ % 2 == 0 ? $class : ''; ?>><?php echo $evaluation['Article']['abstract_en']; ?>&nbsp;</dd>
    </dl>

    <?php echo $form->create('Evaluation', array('action' => "evaluate/$congressId/$articleId")); ?>
        <fieldset>
        <?php
        echo $form->input('originality_grade', array('label' => 'Avaliação de Originalidade'));
        echo $form->input('relevance_grade', array('label' => 'Avaliação de Relevância'));
        echo $form->input('text_grade', array('label' => 'Avaliação de Texto'));
        echo $form->input('general_grade', array('label' => 'Avaliação Geral'));
        echo $form->input('note', array('label' => 'Observações'))
        ?>
    </fieldset>
    <?php echo $form->end('Salvar'); ?>
</div>
<div class="actions">
    <ul>
        <li><?php echo $html->link(__('Ver Artigos', true), array('evaluator' => true, 'controller' => 'evaluations', 'action' => 'list', $congressId)); ?></li>
    </ul>
</div>